package com.heima.common.exception;


import com.heima.model.common.enums.AppHttpCodeEnum;

public class CustomException extends RuntimeException{

    private AppHttpCodeEnum appHttpCodeEnum;

    public  CustomException (AppHttpCodeEnum appHttpCodeEnum) {
        this.appHttpCodeEnum = appHttpCodeEnum;
    }

    public CustomException(AppHttpCodeEnum dataNotExist, String 关联数据不存在) {
    }

    public AppHttpCodeEnum getAppHttpCodeEnum() {
        return appHttpCodeEnum;
    }
}
